#ifndef __LAMEBUFFER_H__
#define __LAMEBUFFER_H__

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include "LAME.h"
#include "LAMEBitmap.h"
#include "DynamicArray.h"


class LAMEBuffer : public LAMEBitmap  
{
  DynamicArray <LRect> rects;
public:
	LAMEBuffer();
	virtual ~LAMEBuffer();

  void addDirtyRect(LRect &r);
  void copy();
#ifndef WINCE
  void copyW32(int32 *buf);
#endif
};

extern LAMEBuffer buffer;

#endif //__LAMEBUFFER_H__